Skip to content

[Mellanox] Increase /var/log partition size for SN6810_LD#27849

Open
Junchao-Mellanox wants to merge 2 commits into
sonic-net:masterfrom
Junchao-Mellanox:master_RC_ch6s_log
Open

[Mellanox] Increase /var/log partition size for SN6810_LD#27849
Junchao-Mellanox wants to merge 2 commits into
sonic-net:masterfrom
Junchao-Mellanox:master_RC_ch6s_log

Conversation

@Junchao-Mellanox

@Junchao-Mellanox Junchao-Mellanox commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Why I did it

  • SN6810_LD needs more log storage for normal operation and troubleshooting.
  • Without a platform-specific override, the installer uses the default VAR_LOG_SIZE=4096, which may be insufficient on this platform.
  • Aligns SN6810_LD with other Mellanox LD platforms that already use VAR_LOG_SIZE=8192.

How I did it

  • Updated device/mellanox/x86_64-nvidia_sn6810_ld-r0/installer.conf.
  • Set VAR_LOG_SIZE=8192 so the installer passes varlog_size=8192 in the kernel command line at boot.
  • No changes to installer scripts or platform API code; the existing installer.conf override mechanism handles this.

How to verify it

  • Build ONIE image for x86_64-nvidia_sn6810_ld-r0.
  • Install image on SN6810_LD hardware or SimX.
  • After boot, verify /var/log size: df -h /var/log shows about 8G.
  • Verify kernel cmdline: cat /proc/cmdline | grep varlog_size=8192.
  • Confirm log rotation and syslog work under normal load.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Junchao-Mellanox <junchao@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

keboliu
keboliu previously approved these changes Jun 12, 2026
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yxieca

yxieca commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

/azpw ms_conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants